import { defineUserConfig, defaultTheme } from 'vuepress'

export default defineUserConfig({
    lang: 'zh-CN',
    title: 'OkTool',
    description: '这是我的第一个 VuePress 站点',

    theme: defaultTheme({
        // URL
        logo: 'https://vuejs.org/images/logo.png',
        // 默认主题配置
        //顶部导航
        navbar: [
            {
                text: '首页',
                link: '/',
            },
            {
                text: '指南',
                link: '/guide',
            },
            {
                text: '记录',
                link: '/log',
            },
            {
                text: 'GitHub',
                link: '/4',
            },
        ],
        //侧边栏对象
        sidebar: {

            '/guide': [
                {
                    text: '快速入门',
                    children: [{ text: '简介', link: '' }]

                },
                {
                    text: '核心',
                    children: [
                        {
                            text: '克隆',
                            children:
                                [
                                    {
                                        text: '支持',
                                        link: 'www.baidu.com'
                                    }
                                ]
                        },
                        {
                            text: '类型转换',
                            children:
                                [
                                    {
                                        text: '支持',
                                        link: 'www.baidu.com'
                                    }
                                ]
                        },
                        {
                            text: '日期时间',
                            children:
                                [
                                    {
                                        text: '支持',
                                        link: 'www.baidu.com'
                                    }
                                ]
                        }
                    ]

                }
            ]
        }
    }),
})
